package com.qiyu.common.utils;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * @Author linhao
 * @Date created in 2:21 下午 2021/1/1
 */
public class CollectionsUtils {

    public static boolean isEmpty(List list) {
        return list == null || list.size() == 0;
    }

    public static List<String> convertSetToList(Set<String> set) {
        List<String> stringList = new ArrayList<>(set.size());
        for (String item : set) {
            stringList.add(item);
        }
        return stringList;
    }
}
